<%-- 
  - Author: Neha Chauhan
  - Date: 10-Apr-2011
  - Copyright Notice: TRAKHEES
  - Description: show.jsp
 --%>

<%@page import="ae.pcfc.etks.online.web.util.SecurityUtils"%>
<%@ include file="/WEB-INF/view/include.jsp"%>
<%@ page import="ae.pcfc.etks.online.web.*"%>

<form:form name="InquireStatus" id="InquireStatus" method="POST" 
		modelAttribute="<%=ConstantsAdmin.CLIENT_REGISTER_INQUIRESTATUS_MODEL_KEY %>">
		
		
		<spring:hasBindErrors
			name="<%=ConstantsAdmin.CLIENT_REGISTER_INQUIRESTATUS_MODEL_KEY %>">
			<script type="text/javascript">
				$(document)
						.ready(
								function() {
									jAlert(
											'error',
											'<li><form:errors path="*" delimiter="<li>"/>',
											'<spring:message code="label.errormessage" />');
								});
			</script>
		</spring:hasBindErrors>
		
	
	<div class="ui-widget_c ui-corner-all">
	<div class="ui-jqgrid-titlebar ui-widget-header ui-corner-top ui-helper-clearfix"><spring:message code="client.register.application.status" /></div>
	<br/>
       <div class="ui-widget_content_c t_fin-black-txt">
	       <c:choose>
		       <c:when test="${status != null }">
			        <div><b><spring:message code="client.register.requestrefno" />
			        	: </b><c:out value="${status.strReferenceNo}" />
			        </div><br/>
				    <div><b><spring:message code="client.register.requeststatus" />
				    	: </b>
					<c:choose>
							<c:when	test='${requestScope.requestContextAttribute.locale.language == "ar"}'>
									<c:out value="${status.strRequestStatusAr}" />
							</c:when>
							<c:otherwise>
									<c:out value="${status.strRequestStatusEn}" />
							</c:otherwise>
					</c:choose>							
				    </div><br/>
			        <div><b><spring:message code="client.register.createdon" />
			        	:</b> 			        	
			        	<fmt:formatDate value="${status.strCreatedOn}"/>
			        </div>
	        	</c:when>
	        	<c:otherwise>
	        	<% request.setAttribute("refNo", SecurityUtils.decryptQueryParam(request.getParameter("refNo"))); %>
	        		<div class="fm-req">
	        			<spring:message code="msg.refno.not.found" arguments="'${requestScope.refNo}'"/>
	        		</div>        		
	        	</c:otherwise>
	        </c:choose>
        </div>	
	</div>
</form:form>